﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/MainWap.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<%@ Import Namespace="LangMauViet.Models.Entity" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    ViewImage
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <% var img = (Images)ViewData["ImageDetail"];
       var hotImg = (List<HotItem>)ViewData["hotImage"];
    %>
    <%--<div class="wap_hotTopic">
        <span>Chủ để HOT: </span>
        <br />
        <ul>
            <% if (!ReferenceEquals(hotImg, null))
               {
                   foreach (var hotItem in hotImg)
                   {%>
            <li><a href="/Image/DetailImage?imageId=<%=hotItem.Icon %>">
                <%=hotItem.Name %></a></li>
            <%}
               }%>
        </ul>
        <div class="clear">
        </div>
    </div>--%>
    <div id="searchbox">
        <div class="keyword">
            <span class="hot">Chủ đề HOT</span>:
            <% if (!ReferenceEquals(hotImg, null))
               {
                   for (int i = 0; i < hotImg.Count; i++)
                   {
                       if (i < hotImg.Count - 1)
                       { %>
            <a href="/Image/DetailImage?imageId=<%=hotImg[i].Icon %>">
                <%= hotImg[i].Name%></a> <span style="font-size: 12px;">|</span>
            <% }
                       else
                       {%>
            <a href="/Image/DetailImage?imageId=<%=hotImg[i].Icon %>">
                <%= hotImg[i].Name%></a>
            <%}
                   }
               }%>
        </div>
    </div>
    <div class="clear">
    </div>
    <div class="wap_image_detail clear">
        <center>
            <img src='http://vipmobi.net:7001/mobile/download?v=1&w=250&id=<%=img.Icon%>' alt=""
                width="80%" />
            <div class="left clear" style="width: 100%; margin-top: 20px; padding-bottom: 20px;">
                <%=img.Name %>
            </div>
        </center>
    </div>
    <div class="clear">
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="metaheader" runat="server">
</asp:Content>
